package com.card.game.dn;

import java.util.Vector;

import com.card.game.Card;

public class NnJuEnd implements Comparable<NnJuEnd>{
	public String userId;
	public Vector<Card> cards;//当前手牌
	public int niuNum;//牛几
	public int winScore;//本局输赢 用于小局结束展示 
	public int playerScore;//计算输赢后的积分
	
	public transient NnInfo info;
	
	public NnJuEnd(NnPlayer player) {
		this.userId = player.getUserId();
		this.info = player.nnInfo;
		this.winScore = this.info.winScore;
		this.cards = this.info.cards;
		this.niuNum = this.info.niuNum;
		this.playerScore = player.getScore();
	}
	
	@Override
	public int compareTo(NnJuEnd o) {
		return this.info.compareTo(o.info);
	}
}
